package com.fy.common;

import java.util.HashMap;
import java.util.Map;

public class GlobalConst {

	public static final String USER_SESSION_KEY = "user";

	public static final String TENGXUN_COS_TEMP_SECERT = "cos_secret";
	public static final String TENGXUN_COS = "cos:";

	public static final String NO_AUTH = "无权限，请先登录";

	public static final String COMPELET_FLAG = "1";

	public static final String UN_COMPELET_FLAG = "0";

	public static final String PRIVATE_ENTERPRISE_TYPE = "0";

	public static final String PUBLIC_TYPE = "1";

	public static final Integer FULL_MARKER = 100;// 试卷满分
	
	public static final String QUESTIONBANK_TYPE_1 = "1"; // 正式考试题库

	public static final String QUESTIONBANK_TYPE_2 = "2"; // 随堂测题库	

	public static final String EXAM_TYPE_1 = "1"; // 正式考试
	
	public static final String EXAM_TYPE_2 = "2"; // 自考(自测)

	public static final String EXAM_TYPE_3 = "3"; // 随堂测

	public static final String EXAM_TYPE_4 = "4"; // 测评

	public static final String QUESTION_BANK_TYPE_1 = "1"; // 正式考试题库

	public static final String QUESTION_BANK_TYPE_2 = "2"; // 随堂测

	public static final String IS_NOT_PUBLISH = "0";

	public static final String IS_PUBLISH = "1";

	public static final Map<String, String> DICTS = new HashMap<String, String>();



    static {
		DICTS.put("1", "题库类型数据");
	}

	public static final String[] OPTIONS = new String[] { "A", "B", "C", "D", "E", "F", "G", "H" };


	/**
	 * UTF-8 字符集
	 */
	public static final String UTF8 = "UTF-8";

	/**
	 * GBK 字符集
	 */
	public static final String GBK = "GBK";

	/**
	 * http请求
	 */
	public static final String HTTP = "http://";

	/**
	 * https请求
	 */
	public static final String HTTPS = "https://";

	/**
	 * 通用成功标识
	 */
	public static final String SUCCESS = "0";

	/**
	 * 通用失败标识
	 */
	public static final String FAIL = "1";

	/**
	 * 登录成功
	 */
	public static final String LOGIN_SUCCESS = "Success";

	/**
	 * 注销
	 */
	public static final String LOGOUT = "Logout";

	/**
	 * 登录失败
	 */
	public static final String LOGIN_FAIL = "Error";


	public static final String RESOURCE_PREFIX = "/profile";


	/**
	 * Redis key
	 */
	public static final String WORKS = "works:";
	public static final String WORKS_LIST_VO = "works:l";
	public static final String WORKS_OPEN_DETAIL = "works:d";
	public static final String WORKS_HOT_ORDER = "index:hot";

	public static final String NOTICE = "notice";
	public static final String NOTICE_LIST_VO = "notice:l";
	public static final String NOTICE_DETAIL = "notice:d";

	public static final String LINKS = "link:";
	public static final String LINKS_LIST = "link:l";
	public static final String LINKS_DETAIL = "link:d";

	public static final String ClASSIFY = "class:";
	public static final String ClASSIFY_LIST = "class:l";
	public static final String ClASSIFY_DETAIL = "class:d";

	public static final String INDUSTRY = "industry:";
	public static final String INDUSTRY_LIST = "industry:l";
	public static final String INDUSTRY_DETAIL = "industry:d";

	public static final String COMMENT = "comment:";
	public static final String COMMENT_LIST = "comment:l";


	public static final String PROVINCE_ODER = "provinceOder:";
	// 首页省市县排行
	public static final String PROVINCE_ODER_INDEX = "provinceOder:i";
	public static final String PROVINCE_ODER_DETAIL_COIN = "provinceOder:c";



	public static String PHONE_CODE = "phone:";
	public static String REGISTER_SEND_MOBILE_CODE_NUM = "phone_num:";

	public static final String PROVICE_LIST = "provice:l";
}
